From: Carlos Garnacho Date: Mon, 21 Jan 2019 19:36:22 +0000 (+0100) Subject: st: Honor button mask on touch events X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~33 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b092c5f37df0b250acc188d192c92a5ee573b0be;p=gnome-shell.git st: Honor button mask on touch events Even though it's not a "button", we use button1 to map to actions. Seems fair to refuse to press the StButton if it would not react to button1. --- diff --git a/src/st/st-button.c b/src/st/st-button.c index a95ddff2d..5a70f4e83 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -241,6 +241,8 @@ st_button_touch_event (ClutterActor *actor, if (priv->pressed != 0) return CLUTTER_EVENT_PROPAGATE; + if ((priv->button_mask & mask) == 0) + return CLUTTER_EVENT_PROPAGATE; device = clutter_event_get_device ((ClutterEvent*) event); sequence = clutter_event_get_event_sequence ((ClutterEvent*) event);